import { LAYOUT } from '../consts'

const menus: any[] = [{
  name: 'sys:manage',
  path: '/sys/manage',
  meta: {
      title: '系统设置',
      icon: 'SettingOutlined',
      orderNo: 1,
      component: 'LAYOUT',
      isSync: false,
      perm: 'sys:manage'
  },
  component: LAYOUT,
  children: [{
    path: '/sys/dept',
    name: 'sys:dept',
    meta: {
        title: '部门管理',
        orderNo: 9,
        icon: 'DeploymentUnitOutlined',
        perm: 'sys:dept',
        affix: false
    },
    component: () =>{
        return import('/@/views/sys/dept/index.vue')
    }
  },{
      path: '/sys/post',
      name: 'sys:post',
      meta: {
          title: '岗位管理',
          orderNo: 10,
          icon: 'ForkOutlined',
          perm: 'sys:post',
          affix: false
      },
      component: () =>{
          return import('/@/views/sys/post/index.vue')
      }
  }]
}]
export default menus